package com.wlcj.www.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;
import com.wlcj.www.util.RequestUtil;

public class IndexHandler extends Handler {

	@Override
	public void handle(String target, HttpServletRequest request,
			HttpServletResponse response, boolean[] isHandled) {
		if (target.indexOf('.') != -1) {
			return ;
		}
		String returnUrl = RequestUtil.createReturnUrl(request);
		request.setAttribute("returnUrl", returnUrl);
		nextHandler.handle(target, request, response, isHandled);
	}

}
